package com.xsq.wifi.activity;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;

import com.xsq.wifi.databinding.ActivityMainBinding;
import com.xsq.wifi.databinding.ActivitySplashBinding;

import java.util.Timer;
import java.util.TimerTask;

/**
 * 编写人：李振德
 * 创建时间：2025/05/07
 */
public class SplashActivity extends BaseActivity {
    private static final String TAG = "SplashActivity";
    private ActivitySplashBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivitySplashBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        startAny();
    }

    private void startAny() {
        final Intent i = new Intent();
        i.setClass(SplashActivity.this, MainActivity.class);
        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                startActivity(i);
                finish();
            }
        }, 1000);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
    @Override
    protected void onPause() {
        super.onPause();
    }
    @Override
    protected void onStop() {
        super.onStop();
    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
